//package com.eurake.seckill.Config;
//
//import com.rabbitmq.client.impl.nio.BlockingQueueNioQueue;
//import jakarta.annotation.Resource;
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.FanoutExchange;
//import org.springframework.amqp.core.Queue;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.stereotype.Controller;
//
//@Controller
//public class RabbitMQConfig {
//    private static final String QUEUE01 = "queue01";
//    private static final String QUEUE02 = "queue02";
//    private static final String EXCHANGE = "fanoutExchange";
//
//    @Bean
//    public Queue queue() {
//        return new org.springframework.amqp.core.Queue("queue",true);
//    }
//
//    @Bean
//    public Queue queue01() {
//        return new Queue(QUEUE01);
//    }
//
//    @Bean
//    public Queue queue02() {
//        return new Queue(QUEUE02);
//    }
//
//    @Bean
//    public FanoutExchange fanoutExchange() {
//        return new FanoutExchange(EXCHANGE);
//    }
//
//    @Bean
//    public Binding binding01() {
//        return BindingBuilder.bind(queue01()).to(fanoutExchange());
//    }
//
//    @Bean
//    public Binding binding02() {
//        return BindingBuilder.bind(queue02()).to(fanoutExchange())  ;
//    }
//}
